package xyz.csmcool.imuser.entity.vo;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author 什锦
 * @Package xyz.csmcool.imuser.entity.vo
 * @since 2022/7/31 16:06
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserRegisterVo implements Serializable {
    @NotBlank(message = "用户名不能为空")
    @Length(min = 0,max = 15,message = "用户名长度应该不超过15")
    private String username;
    @NotBlank(message = "密码不能为空")
    private String password;
    @Email(message = "请输入正确的邮箱格式")
    @NotBlank(message = "邮箱不能为空")
    private String email;
}
